package com.lzhl.buildjar.dao;

import com.lzhl.buildjar.po.Category;

import java.util.LinkedList;
import java.util.List;

/**
 * @author 李柱良(@柱子的日月)
 * @date 2014/6/19
 */
public interface CategoryDao {
    public Category getCategory(long id);
    public List<Category> getCategories(Category parent);
    public Category getCategoryTree(long sonId);
    public Category addCategory(Category category);
    public Category saveCategory(Category category);
    public void deleteCategory(long id);
    public boolean isExists(Category parent, String name);
}
